package Crm;

public class UserManage {
    public static void main(String[] args) {
        boolean isExit = true;
        while (isExit) {
            util.menu();
            char flag = util.readFlag();
            switch (flag) {
                case '1' -> util.showUserList();
                case '2' -> util.addUser();
                case '3' -> util.modifyUser();
                case '4' -> util.deleteUser();
                case '5' -> {
                    System.out.print("是否确认退出(y/n)");
                    char temp = util.confirm();
                    if (temp == 'y') {
                        isExit = false;
                    }
                }
                default -> System.out.println("错误输入, 请重新输入...");
            }


        }
    }
}
